/**
 */
package com.dingpeikeji.quickdeer.core.modules.distribution.dao;

import java.util.List;

import com.dingpeikeji.quickdeer.core.common.persistence.CrudDao;
import com.dingpeikeji.quickdeer.core.common.persistence.annotation.MyBatisDao;
import com.dingpeikeji.quickdeer.core.modules.cupons.entity.CuponsInfo;
import com.dingpeikeji.quickdeer.core.modules.distribution.entity.DistributionInfo;
import com.dingpeikeji.quickdeer.core.modules.line.entity.TLine;
import com.dingpeikeji.quickdeer.mobile.entity.OrderInfo;

/**
 * 分销定义DAO接口
 */
@MyBatisDao
public interface TDistributionDao extends CrudDao<DistributionInfo> {
	
	public Integer updateById(DistributionInfo distributionInfo);
	
	public List<DistributionInfo> getByUserId(String userId);
	
	public Integer insertWhitdraw(DistributionInfo distributionInfo);
	
	public String getRate();
	
	public Integer updateRate(String rate); 
	
	public Integer insertWithdrawSettle(DistributionInfo distributionInfo); 
	
	public List<OrderInfo> getWithdrawSettleById(String distributionId);
	
}
